import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', meta: { footer: true }, component: () => import('@/views/shouye/shouyeView.vue') },
    { path: '/cinema', meta: { footer: true }, component: () => import('@/views/cinema/CinemaView.vue') },
    { path: '/blindbox', meta: { footer: true }, component: () => import('@/views/blindbox/BoxView.vue') },
    { path: '/my', meta: { footer: true }, component: () => import('@/views/my/MyView.vue') },
    // { path: '/detail', name: 'detail', component: () => import('@/views/Detail/detailView.vue') },
    { path: '/film/:id', name: 'FilmDetail', component: () => import('@/views/Detail/detailView.vue') }
  ]
})

export default router
